/*
 * @Author: WJ23000 624473119@qq.com
 * @Date: 2023-10-08 14:05:19
 * @LastEditors: 汪军 624473119@qq.com
 * @LastEditTime: 2023-10-20 09:40:44
 * @FilePath: \ekee-web\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import pinia from "./store";
import { WEB_URL, BASE_API } from "./config";
import "./style.css";
import "@/permission";
// createApp(App).use(router).mount('#app')
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
app.config.globalProperties.$WEB_URL = WEB_URL;
app.config.globalProperties.$BASE_API = BASE_API;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router);
app.use(pinia);
app.use(ElementPlus);
app.mount("#app");
